package com.cafe.action.admin;

import com.malamute.core.action.BaseAction;

/**
 * @author Aceguan
 * @description TODO
 * @date 2012-2-25 下午01:53:36
 * @version v1.0
 */


public class DemoAction extends BaseAction {

//	@Override
//	public String execute() throws Exception {
//		System.out.println("demo execute");
//		System.out.println("method:" + method);
//		Method[] methods = this.getClass().getMethods();
//		System.out.println(methods.length);
//		for (Method m : methods) {
//			System.out.println(m.getName());
//			if (m.getName().equalsIgnoreCase(method)) {
//				System.out.println(method + "=============================");
//				Object returnObject = m.invoke(this, null);
//				if (returnObject instanceof String) {
//					return (String) returnObject;
//				} else {
//					throw new CafeException("返回格式出错");
//				}
//			}
//		}
//		return SUCCESS;
//	}

	public String a() {
		System.out.println("inner ...............aaaaaaaaaaa");
		return "index";
	}

	public String b() {
		System.out.println("inner.............bbbbbbbbb");
		return "aaa";
	}

	public void prepareA() {
		System.out
				.println("prepareAprepareAprepareAprepareAprepareAprepareAprepareA");
	}

	public void prepareB() {
		System.out
				.println("prepareBprepareBprepareBprepareBprepareBprepareBprepareB");
	}
	
	
}
